package com.oa.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @version 1.0
 * @author xie
 * @Description: WebSocket 配置类
 * @date: 2025-02-28 8:41
 */
@Configuration
public class WebSocketConfig {

    /**
     * 注册 ServerEndpointExporter 来自动扫描和注册 WebSocket 服务端点
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
